package cn.hy.visit;

public class LevelTowMember implements Member {



    public void visit(FruitMilkTea fruitMilkTea) {
        double discount = fruitMilkTea.getPrice() * 0.9;
        System.out.println("LevelTowMember pearMilkTea  discount price :" + discount);

    }

    public void visit(PearMilkTea pearMilkTea) {
        double discount = pearMilkTea.getPrice() * 0.9;
        System.out.println("LevelTowMember pearMilkTea  discount price :" + discount);
    }
}
